calendar: Don't request drag data on every motion event
authorBenjamin Otte <otte@redhat.com>
Sun, 10 Dec 2017 19:18:08 +0000 (20:18 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 11 Dec 2017 00:02:31 +0000 (01:02 +0100)
At least wait until we've received the previous one.

gtk/gtkcalendar.c

index 172ed658014a18950a7abceca6539a6accce9111..f9b83ebbdb3d375188d9d1870aa18033f329be90 100644 (file)
@@ -2945,7 +2945,7 @@ gtk_calendar_drag_motion (GtkWidget      *widget,
   target = gtk_drag_dest_find_target (widget, context, NULL);
   if (target == NULL || gdk_drag_context_get_suggested_action (context) == 0)
     gdk_drag_status (context, 0, time);
-  else
+  else if (get_status_pending (context) == 0)
     {
       set_status_pending (context, gdk_drag_context_get_suggested_action (context));
       gtk_drag_get_data (widget, context, target, time);